package com.concurrency.example.singleton;

public class SingletonExample2 {
    private SingletonExample2() {

    }

    private static SingletonExample2 instance = null;

    static {
        instance = new SingletonExample2();
    }

    public static SingletonExample2 getInstance() {
        return instance;
    }

    public static void main(String[] args) {
        System.out.println(getInstance().hashCode());
        System.out.println(getInstance().hashCode());
    }
}
